/*
 * @Author: ljkt
 * @Version: 1.1
 * @Date: 2023-12-01 17:17:03
 * @LastEditors: ljkt
 * @LastEditTime: 2023-12-07 09:17:08
 * @Description:
 */

#include "Hal_Isr.h"

#ifdef e_Index_Tm0
void timer0() interrupt 1
{
	SET_GLOBAL_IE(REF_FALSE);
	time0_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif

#ifdef e_Index_Tm1
void timer1() interrupt 3
{
	SET_GLOBAL_IE(REF_FALSE);
	time1_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Tm2
void timer2() interrupt 5
{
	SET_GLOBAL_IE(REF_FALSE);
	time2_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Tm3
void timer3() interrupt 13
{
	SET_GLOBAL_IE(REF_FALSE);
	time3_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Tm4
void timer4() interrupt 14
{
	SET_GLOBAL_IE(REF_FALSE);
	time4_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif

#ifdef e_Index_Uart0
void Uart0_Int(void) interrupt 7
{
	SET_GLOBAL_IE(REF_FALSE);
	uart0_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif

#ifdef e_Index_Uart1
void Uart1_Int() interrupt 15
{
	SET_GLOBAL_IE(REF_FALSE);
	uart1_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Uart2
void Uart2_Int() interrupt 16
{
	SET_GLOBAL_IE(REF_FALSE);
	uart2_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Uart3
void Uart3_Int() interrupt 17
{
	SET_GLOBAL_IE(REF_FALSE);
	uart3_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Uart4
void Uart4_Int() interrupt 18
{
	SET_GLOBAL_IE(REF_FALSE);
	uart4_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Uart5
void Uart5_Int() interrupt 19
{
	SET_GLOBAL_IE(REF_FALSE);
	uart5_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif

#ifdef e_Index_Inter0
void INT0Interrupt() interrupt 0
{
	SET_GLOBAL_IE(REF_FALSE);
	int0_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Inter1
void INT1Interrupt() interrupt 2
{
	SET_GLOBAL_IE(REF_FALSE);
	int1_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif
#ifdef e_Index_Inter2
void INT2Interrupt() interrupt 10
{
	SET_GLOBAL_IE(REF_FALSE);
	int2_callback();
	SET_GLOBAL_IE(REF_TRUE);
}
#endif